<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form action="/dept/addDept" th:action="@{/dept/addDept}" method="post" th:object="${dept}">
        <input type="hidden" name="deptid" th:value="${deptid}">
        部门名称<br/>
        <input type="text" name="deptname" th:value="${deptname}">
        <br/>
        <input type="submit" value="提交">
    </form>
</body>
</html>